package com.cai.permission.service.impl;

import com.cai.permission.dao.SysDepartmentMapper;
import com.cai.permission.domain.SysDepartment;
import com.cai.permission.service.TestInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestInterfaceImpl implements TestInterface {

    @Autowired
    private SysDepartmentMapper departmentMapper;

    @Override
    public String helloWorld() {
        return "helloWorld";
    }

    @Override
    public List<SysDepartment> getDepartmentAll() {
        return departmentMapper.getDepartmentAll();
    }
}
